<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./js/jquery.min.js"></script>
    <script>
        /* 我们JS里面有一个循环 => forEach => 抄的JQ
            $(arr).each(function(index,item){

            })
        */
        let arr = [
            {id:1,username:"文言",age:18,gender:"女"},
            {id:2,username:"文云",age:19,gender:"女"},
            {id:3,username:"文渊",age:21,gender:"男"},
            {id:4,username:"文勇",age:22,gender:"男"},
        ]

        $(arr).each(function(index,item){
            console.log(item,index);
        })


    </script>
</body>
</html>